/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package tests;

/**
 *
 * @author luis
 */
public class Clave {
    String key;
    Clave(){
        System.out.println("Introduce la clave: ");
        key = Scan.Console.nextLine();
    }

    /**
     *
     * @param key2
     * @return
     */
    public boolean test(String key2){
        return key.equals(key2);
    }

    /**
     *
     * @param args
     */
    public static void main(String[] args) {
        Clave clave = new Clave();
        
        if(clave.test(Scan.Console.nextLine())){
            System.out.println("Iguales");
        }
        else{
            System.out.println("Diferentes");
        }
    }
}
